<?php
$data = file_get_contents("./jiekou.json");
$result = preg_match_all('/{"标题":"(.*?)","小标题":"(.*?)","地址":"(.*?)","状态":"(.*?)"}/',$data,$v);
?>

<?php
@$zuotian = intval(file_get_contents("./api/tongji/jinri/".date("Y-m-d",strtotime("-1 day"))."/".date("Y-m-d",strtotime("-1 day")).".dat"));
@$zongtiaoyong = intval(file_get_contents("./api/tongji/zongtiaoyong/xiaoyu.dat"));
@$jinri = intval(file_get_contents("./api/tongji/jinri/".date("Y-m-d")."/".date("Y-m-d").".dat"));
?>

<?php
include('./template/index.php');
?>

<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8">
        
        <meta name="robots" content="all">
        <meta name="author" content="<?php echo $web["youxiang"]; ?>">
        <meta content="yes" name="apple-mobile-web-app-capable">
        <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
        <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;">
        <meta name="baidu-site-verification" content="code-6d5EARA3Gm" />
        <title><?php echo $web["ming"]; ?>API - 免费提供API服务</title>
        <link rel="icon" href="http://q2.qlogo.cn/headimg_dl?dst_uin=<?php echo $web["qq"]; ?>&spec=5" type="image/ico">
        <meta name="keywords" content="<?php echo $web["keywords"]; ?>">
        <meta name="description" content="<?php echo $web["description"]; ?>">
        <meta itemprop="image" content="assets/images/api_logo.png">
        <link href="./template/2/css/layui.css" rel="stylesheet" type="text/css">
        <link href="https://lib.baomitu.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
        <link href="https://lib.baomitu.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
        <link href="./template/2/css/site.min.css" rel="stylesheet">
        <script>var build = 1875391011;</script>
    </head>
    <body class="home-template">
        <header class="site-header">
            <nav class="navbar navbar-static-top main-navbar" id="top">
                <div class="container">
                    <div class="navbar-header">
                        <a class="navbar-brand brand-kateapi text-hide" href="/"><?php echo $web["ming"]; ?>API</a>
                        <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#bs-navbar">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                    </div>
                    <nav id="bs-navbar" class="collapse navbar-collapse">
                        <ul class="nav navbar-nav navbar-right">
                            <li><a href="../zhuye">首页</a></li>
                            <li><a href="../gengxin">更新日志</a></li>
                            <li><a href="../yuanma">联系我们</a></li>
                        </ul>
                    </nav>
                </div>
            </nav>
            <div class="container jumbotron">
                <div class="row">
                    <div class="col-xs-12">
                        <h1><?php echo $web["ming"]; ?>API</h1>
                        <p>稳定、快速、免费的 API 接口服务<br><span class="package-amount">共收录了 <strong><?php echo $result; ?></strong> 个接口</span></p>
                        <div class="search-wraper" role="search" style="/*display: none;*/">
                                </p>
                                <marquee behavior="scroll" direction="left">特别感谢:可乐云(70033256)赞助一百六十六米，羡(1179075057)赞助一百米，奕氏(180142181)提供域名</marquee>
                                </p>
                            <div class="form-group">
                                <form action="/" method="POST">
                                <input class="form-control search clearable" placeholder="搜索API名称，然后回车！" name="msg"> 
                                <i class="fa fa-search"></i>
                            </div>
                        </div>
                        
                    </div>
                </div>
            </div>
        </header>
        <div class="container protocal-notice hidden-xs">
            <div class="row">
                <div class="col-xs-12">
                    <div class="pull-right" style="color: #339900; cursor:pointer;">
          	            拒绝流量劫持，全面使用 HTTPS
                    </div>
                </div>
            </div>
        </div>
        <main class="packages-list-container" id="all-packages">
            <div class="container">
                <div class="list-group packages">



<?php
include('./template/2/Template.php');
?>
                                </div>
                <div class="list-group packages" id="search-results" style="display: none"></div>
            </div>
        </main>
        <footer id="footer" class="footer hidden-print">
            <div class="container">
                <div class="row">
                    <div class="footer-about col-md-5 col-sm-12" id="about">
                        <h4>关于 <?php echo $web["ming"]; ?>API</h4>
                        <p><?php echo $web["ming"]; ?>API 是 <a href="https://www.owq.plus" target="_blank">OwQ Studio</a> 支持并维护的 API 接口项目，致力于为用户提供稳定、快速的免费 API 接口服务平台。</p>
                        <p><font onclick="layer.alert('自上线以来总累计提供数 <code><?php echo $zongtiaoyong; ?></code> 次 API 接口服务。其中，昨日调用数 <code><?php echo $zuotian; ?></code> 次，今日调用数 <code><?php echo $jinri; ?></code> 次。" color="#FF0000"> <i class="fa fa-bar-chart"></i> </font> 自上线以来总累计提供数 <font color="#FF6633"><?php echo $zongtiaoyong; ?></font> 次 API 接口服务。其中，昨日调用数 <font color="#FF6633"><?php echo $zuotian; ?></font> 次，今日调用数 <font color="#FF6633"><?php echo $jinri; ?></font> 次。</p>
                        <p><font color="#FF0000"><i class="fa fa-warning fa-spin"></i> 须知：<?php echo $web["ming"]; ?>API 将会记录你的域名、使用流量、调用次数等重要信息，若有介意，请勿使用。<br>&nbsp;&nbsp;&nbsp;&nbsp;条款：<?php echo $web["ming"]; ?>API 拥有所有运行权，在某些特定情况下，<?php echo $web["ming"]; ?>API 有权利禁止你的网站调用。</font></p>
                        <p>
                            问题反馈或建议请发送邮件至：<a href="mailto:<?php echo $web["youxiang"]; ?>" target="_blank"><?php echo $web["youxiang"]; ?></a>
			            </p>
                    </div>
                    <div class="footer-techs col-md-2 col-sm-12">
                        <h4>联系我们</h4>
                        <ul class="list-unstyled list-inline">
                            <li><a href="../yuanma" target="_blank">联系方式</a></li>
                        </ul>
                    </div>
                    <div class="footer-links col-md-3 col-sm-12">
                        <h4>友情链接</h4>
                        <ul class="list-unstyled list-inline">
<?php
$目录 = file_get_contents("./template/youqing.php");
$友情 = preg_match_all("/『名字：(.*?)』『链接：(.*?)』『介绍：(.*?)』『QQ：(.*?)』『状态：已添加』/",$目录,$v);
?>

<?php
if($友情== 0){
echo "";
}else{
for( $i = 0 ; $i < $友情 && $i < $友情 ; $i ++ ){
$名字=$v[1][$i];
$链接=$v[2][$i];
echo '<li><a href="'.$链接.'" target="_blank">'.$名字.'</a></li>';
}}?>
<li><a href="../../admin/shenqing.php" target="_blank">申请友链</a></li>

                        </ul>
                    </div>
                    <div class="footer-links col-md-3 col-sm-12">
                        <h4>API大全</h4>
                        <ul class="list-unstyled list-inline">
<li><?php
include('./template/API.php');
?><li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="copy-right">
                <span>Copyright&nbsp;©&nbsp;2021-2022&nbsp;<a href="https://im.owq.plus" target="_blank">囍楽API</a>&nbsp;版权所有</span>
                </a>
            </div>
<script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_<?php echo $guchenyu; ?>'%3E%3C/span%3E%3Cscript src='https://s9.cnzz.com/z_stat.php%3Fid%3D<?php echo $guchenyu; ?>%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E"));</script>
        </footer>
        <a href="#" id="back-to-top"><i class="fa fa-angle-up"></i></a>
        <script src="https://lib.baomitu.com/jquery/1.12.4/jquery.min.js"></script>
        <script src="https://lib.baomitu.com/layer/3.1.1/layer.js"></script>
        <script src="https://lib.baomitu.com/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
        <script src="https://lib.baomitu.com/geopattern/1.2.3/js/geopattern.min.js"></script>
        <script src="https://lib.baomitu.com/clipboard.js/1.5.16/clipboard.min.js"></script>
        <script src="https://lib.baomitu.com/localforage/1.4.2/localforage.min.js"></script>
        <script src="https://lib.baomitu.com/lodash.js/4.17.4/lodash.min.js"></script>
        <script src="./template/2/js/site.min.js"></script>
    
<script>(function(d,t,u,s,e){e=d.getElementsByTagName(t)[0];s=d.createElement(t);s.src=u;s.async=1;e.parentNode.insertBefore(s,e);})(document,'script','//api.xxuan.xyz/zhuye/data/kefu/php/app.php?widget-init.js');</script>

<!--音乐开始-->
<audio autoplay>
<source src="https://api.uomg.com/api/rand.music?sort=热歌榜" type="audio/mpeg">
</audio>
<!--音乐结束-->

</body></html>